﻿using System.Collections.Generic;

namespace memo
{
    /// <summary>
    /// IDataAccessor:
    /// Interface for MockDataAccessor and DataAccessor.
    /// Is used by DataAccessFactory, to standardize data access.
    /// </summary>
    public interface IDataAccessor
    {
        //Metódus a mentésre.
        /// <summary>
        /// Method for saving the data, the topic list.
        /// </summary>
        /// <param name="topics">The main list that contains all the topic.</param>
        /// <exception cref="memo.MemoDataAccessorException">Throws when some problem occurs during the saving process. </exception>
        void Save(List<Topic> topics);

        //Metódus a betöltésre.
        /// <summary>
        /// Method for loading the data, the topic list.
        /// </summary>
        /// <exception cref="memo.MemoDataAccessorException">Throws when some problem occurs during the loading process. </exception>
        List<Topic> Load();
    }
}
